package com.kernel;

/****************************************
 * @name FactoryDemo01
 * @description 工厂演示类
 * @author 黄彬恒
 * @since 2018/7/16
 ***************************************/
public class FactoryDemo01 {
    public static void main(String args[]) {
        Fruit f = Factory.getInstance("com.kernel.Apple");
        if (f != null) {
            f.eat();
        }
    }
}
